package com.aspose.cells;

class zrm implements zagp {
   private ziw a;
   private String b = "";
   private int c = 0;
   private int d;
   private int e;
   private int f;
   private boolean g = false;
   private boolean h;
   private int i = 0;
   private boolean j = false;
   private int k = 0;
   private boolean l = false;

   boolean a() {
      return this.h;
   }

   void a(boolean var1) {
      this.h = var1;
   }

   zrm(zif var1, Object var2, int var3) {
      this.a = new ziw(var1, var2, var3);
      this.d = 0;
      this.a.d().a(0);
      this.e = 1;
      this.f = 1;
      this.h = true;
   }

   ziw b() {
      return this.a;
   }

   public zagc c() {
      return this.a;
   }

   public int d() {
      return this.c;
   }

   public void a(int var1) {
      this.c = var1;
   }

   public int e() {
      return this.i;
   }

   public void b(int var1) {
      this.a(-11);
      this.i = var1;
   }

   public double f() {
      return this.d() != -11 ? (double)this.d() : -Math.log10((double)this.e());
   }

   public String g() {
      if (!"".equals(this.b)) {
         return this.b;
      } else {
         switch(this.c) {
         case -12:
            return "Trillions";
         case -11:
            return "x " + this.e();
         case -10:
         case -1:
         default:
            return "None";
         case -9:
            return "Billions";
         case -8:
            return "x 100000000";
         case -7:
            return "x 10000000";
         case -6:
            return "Millions";
         case -5:
            return "x 100000";
         case -4:
            return "x 10000";
         case -3:
            return "Thousands";
         case -2:
            return "Hundrends";
         case 0:
            return "None";
         }
      }
   }

   public void a(String var1) {
      this.b = var1;
   }

   public int h() {
      return this.d;
   }

   public void c(int var1) {
      this.d = var1;
      this.a(false);
   }

   public int i() {
      return this.e;
   }

   public void d(int var1) {
      this.e = var1;
   }

   public int j() {
      return this.f;
   }

   public void e(int var1) {
      this.f = var1;
   }

   public void b(boolean var1) {
      this.j = var1;
   }

   public int k() {
      return this.k;
   }

   public void f(int var1) {
      this.k = var1;
   }

   public boolean l() {
      return this.g;
   }

   public void c(boolean var1) {
      this.g = var1;
   }

   protected void finalize() throws Exception {
      this.d(false);
   }

   public void m() {
      this.d(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void d(boolean var1) {
      if (!this.l) {
         if (var1 && this.a != null) {
            this.a.E();
         }

         this.l = true;
      }

   }
}
